home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / ThreadException.cc,v < prev    next >
Text File  |  1988-10-12  |  1KB  |  70 lines

  1. head     1.1;
  2. access   ;
  3. symbols  ;
  4. locks    grunwald:1.1; strict;
  5. comment  @@;
  6.  
  7.  
  8. 1.1
  9. date     88.10.12.10.50.57;  author grunwald;  state Exp;
  10. branches ;
  11. next     ;
  12.  
  13.  
  14. desc
  15. @@
  16.  
  17.  
  18.  
  19. 1.1
  20. log
  21. @Initial revision
  22. @
  23. text
  24. @#ifndef ThreadException_h
  25. #define ThreadException_h
  26.  
  27. class ExceptionClass {
  28. public:
  29.     ThreadException();
  30.     virtual void handleException();
  31. };
  32.  
  33. inline ThreadException::ThreadException()
  34. {
  35. }
  36.  
  37.  
  38. class ReserveByException;
  39.  
  40. class ExceptionBlockOn : public ExceptionClass {
  41.     ReserveByException *reserveToBlockOn;
  42. public:
  43.     ExceptionBlockOn( ReserveByException *);
  44.     virtual void handleException();
  45. };
  46.  
  47. inline
  48. ExceptionBlockOn::ExceptionBlockOn( ReserveByException *r )
  49. {
  50.     reserveToBlockOn = r;
  51. }
  52.  
  53. class Thread;
  54.  
  55. class ExceptionTerminate : public ExceptionClass {
  56.     Thread *threadToTerminate;
  57. public:
  58.     ExceptionTerminate( Thread * );
  59.     virtual void handleException();
  60. };
  61.  
  62. inline
  63. ExceptionTerminate::ExceptionTerminate( Thread *t )
  64. {
  65.     threadToTerminate = t;
  66. }
  67.  
  68. #endif /* ThreadException_h */
  69. @
  70.